package com.jierui.meter.frontend.mapper;

import com.jierui.meter.frontend.domain.DO.MeterArchiveInfoDO;
import com.jierui.meter.frontend.domain.DO.MeterStatusDO;
import com.jierui.meter.frontend.domain.Param.MeterStatusParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeterStatusMapper {

    List<MeterStatusDO> selectByTgIdGroupByStatus(@Param("tgId") String tgId, @Param("year") String year);

    List<MeterStatusDO> selectByON7GroupByFirm(@Param("on7") String on7, @Param("year") String year);

    List<MeterStatusDO> selectByON7GroupByRunTime(@Param("on7") String on7, @Param("year") String year);

    List<MeterStatusDO> selectByParam(MeterStatusParam param);

    List<MeterStatusDO> selectByParamLeftSaOrg(MeterStatusParam param);

    int selectByParamLeftSaOrgCount(MeterStatusParam param);

    List<MeterStatusDO> selectMeterPowerByMeterId(@Param("meterid") String meterid, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<MeterStatusDO> selectTgPowerByTgId(@Param("tgId") String tgId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<MeterStatusDO> selectMaxPowerByTgid(@Param("tgId") String tgId, @Param("startTime") String startTime, @Param("endTime") String endTime);


    MeterArchiveInfoDO getMeterInforInfo(@Param("meterid") String meterid);


}
